cmake_minimum_required(VERSION 3.10)

#set(CMAKE_CUDA_COMPILER /usr/local/cuda/bin/nvcc)
#set(CMAKE_CUDA_ARCHITECTURES 52)
#set(CMAKE_CUDA_SEPARABLE_COMPILATION ON)

project(mylib LANGUAGES C CXX)
# CUDA
#find_package(CUDA REQUIRED)
#include_directories(${CUDA_INCLUDE_DIRS})
#include_directories("/usr/local")
#if(not set CMAKE_BUILD_TYPE)
#    set(CMAKE_BUILD_TYPE Release)
#endif(not set CMAKE_BUILD_TYPE)
message("CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
message("PATH: $ENV{PATh}")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_BUILD_TYPE Release)

message(STATUS ${CMAKE_PREFIX_PATH})
message(STATUS ${CMAKE_BINARY_DIR})
message(STATUS ${PROJECT_BINARY_DIR})
message(STATUS ${CMAKE_INSTALL_PREFIX})

add_executable(test_libpng src/libpng/test_libpng.cpp)
target_link_libraries(test_libpng png)

add_executable(test_libpng_gray src/libpng/test_libpng_gray.cpp)
target_link_libraries(test_libpng_gray png)

find_package(DCMTK REQUIRED)
add_executable(test_dcmtk src/dcmtk/test_dcmtk.cpp)
target_link_libraries(test_dcmtk dcmdata dcmimage oflog ofstd z icuuc dcmjpeg png)

add_executable(test_dcmtk_libpng_gray src/dcmtk/test_dcmtk_libpng_gray.cpp)
target_link_libraries(test_dcmtk_libpng_gray dcmdata dcmimage oflog ofstd z icuuc dcmjpeg png)

# find_package(libzmq REQUIRED)
add_executable(test_msg_recv_sender src/libzmq/test_msg_recv/test_msg_recv_sender.cpp)
target_link_libraries(test_msg_recv_sender zmq)

add_executable(test_msg_recv_receiver src/libzmq/test_msg_recv/test_msg_recv_receiver.cpp)
target_link_libraries(test_msg_recv_receiver zmq)

add_subdirectory(src/socket_api)
add_subdirectory(src/fastdds/helloworld)

add_subdirectory(src/c)
add_subdirectory(src/cpp)
#add_subdirectory(src/cuda)
add_subdirectory(src/vulkan)